package com.shop.shopmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.shopmall.pojo.Menu;
import com.shop.shopmall.service.MenuService;
import com.shop.shopmall.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author jamie
* @description 针对表【menu】的数据库操作Service实现
* @createDate 2025-03-20 11:53:37
*/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>
    implements MenuService{

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> getAllMenus() {
        return menuMapper.getAllMenus();
    }

    @Override
    public List<Menu> getMenu(Menu menu) {
        return menuMapper.getMenu(menu);
    }

}




